package com.springboot.cloud.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class IndexController {

	@RequestMapping(value = "/index", method = RequestMethod.GET)
	public ModelAndView index() {
		return new ModelAndView("1.html");
	}	
	@RequestMapping(value = "/root", method = RequestMethod.GET)
	public ModelAndView root() {
		return new ModelAndView("rootpage/index.html");
	}	
}
